<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<!--浏览器解析网页时遇到script标记 就知道这里面是js代码 -->
<script>
    console.log("Hello JavaScript");
    alert("Hello");
    document.write("JavaScript");
</script>
</html>